package demo;

import java.util.List;

public class Test4 {
	
	

	public static void main(String[] args) throws Exception { 
	     IndexWriterDemo demo =new IndexWriterDemo();  
		//获取数据
	     List<User> list = DataUtil.getUsers(); 
	     
        /**生成索引库*/  
        demo.buildDocs(list);  
          
        /**查询数据*/  
        demo.searcherDocs();
        
        demo.delDocs();
	}

}
